package com.itheima.pojo;

import java.util.List;

public class T_Class {
    private Integer id;
    private String classname;
    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassname() {
        return classname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }
    public String toString() {
        return "Class{" + classname +"的学生有"+
                ", studentList=" +studentList +  '}';
    }
}
